package com.example.it.presenter;

import com.example.it.View.ItView;
import com.example.it.base.BasePresenter;
import com.example.it.bean.ItInfoItemBean;
import com.example.it.model.ItCallBack;
import com.example.it.model.ItModel;

public class ItPrsenter extends BasePresenter<ItView> implements ItCallBack {
    private ItModel model;
    @Override
    protected void initModel() {
        this.model=new ItModel();
        addModel(model);
    }
    public void getdata(int id,int page){
        model.addModel(this,id,page);
    }
    @Override
    public void onSuccess(ItInfoItemBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
